<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>absolute</title>
    <style>
        .main-left {
            background-color: aqua;
            height: 200px;
            width: 200px;
            /* absolute定位 */
            position: absolute;
            left: 100px;
            top: 100px;
        }
        .main-right{
            background-color:cadetblue;
            height: 200px;
            width: 200px;
            /* absolute定位 */
            position: absolute;
            right: 100px;
            bottom: 100px;
        }
    </style>
</head>
<body>
    <div class="main-left">
        <p>调整浏览器大小，元素始终距离浏览器左侧100px，距离浏览器上方100px</p>
    </div>
    <div class="main-right">
            <p>调整浏览器大小，元素始终距离浏览器右侧100px，距离浏览器下方100px</p>
    </div>
</body>
</html>